package com.atguigu.jxc.service;

import com.atguigu.jxc.domain.ServiceVO;
import com.atguigu.jxc.entity.Customer;
import com.atguigu.jxc.entity.Supplier;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

public interface CustomerService {
    /**
     * 分页查询客户数据
     * @param page
     * @param rows
     * @param customerName
     * @return
     */
    Map<String, Object> customerList(@Param("page") Integer page, @Param("rows") Integer rows, @Param("customerName") String customerName);

    /**
     * 保存修改客户
     * @param customer
     * @return
     */
    ServiceVO savaCustomer(Customer customer);

    /**
     * 批量删除客户信息
     * @param ids
     */
    void deleteById(String ids);
}
